package com.open.capacity.workflow3.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.open.capacity.reimburse.util.uuid.UUIDUtils;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * @author
 * @email
 * @date 2023-11-02 21:21:15
 */

@Data
public class NwfSchemeinfo implements Serializable {
    private static final long serialVersionUID = 1L;


    private String id;

    private String companyId;

    private String code;

    private String name;

    private String category;

    private String schemeId;

    private Integer enabledMark;

    private Integer mark;

    private Integer type;

    private Integer sort;

    private Integer status;

    private String description;

    private String updateUserid;

    private String updateUsername;

    @JsonFormat(timezone="GMT+8",pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    private String createUserid;

    private String createUsername;

    private Date createTime;

    public NwfSchemeinfo create() {
        id = UUIDUtils.getOriginalUUIDWithoutBar();
        enabledMark = 1;
        type = 1;
        return this;
    }

    public NwfSchemeinfo modify(String keyValue) {
        id = keyValue;
        return this;
    }

}
